/* index.html */
/* top bar 部分 */

/* banner 部分 */

.banner {
  display: flex;
  justify-content: center;
  height: 300px;
}

.banner .bn-center {
  display: flex;
  width: 1200px;
}

.banner .swiper {
  width: 800px;
  height: 300px;
}


/* banner 头像部分 */

.banner .userInfo {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 260px;
  height: 260px;
  margin: 20px;
  /* 宽高 + margin = 300px */
  border-radius: 15px;
  background-color: #f2f2f2;
}

.banner .userInfo .avatar {
  width: 80px;
  height: 80px;
  border-radius: 10px;
}

.banner .userInfo .itemWrap {
  display: flex;
  justify-content: space-around;
  width: 220px;
}

.banner .userInfo .item {
  width: 60px;
  height: 60px;

  text-align: center;
}

.banner .userInfo .item img {
  width: 20px;
  height: 20px;
}

.banner .userInfo .item p {
  font-size: 12px;
  color: #999;
  margin: 5px 0;
}

/* 商品列表部分 */

.bookTable {
  display: flex;
  justify-content: center;
}

.bookTable .bt-center {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  width: 1200px;
  margin: 20px 0;
}

.bookTable .bt-center .bt-card {
  width: 200px;
  height: 350px;
  margin: 20px auto;
  outline: 2px solid #ccc;
}

.bookTable .bt-center .bt-card:hover {
  outline: 2px solid #ffe5e5;
}

.bookTable .bt-center .cover {
  width: 200px;
  height: 200px;
  margin: 10px auto;
}

.bookTable .bt-center .cover img {
  width: 200px;
  height: 200px;
}

.bookTable .bt-center .box {
  display: grid;
  grid-template-columns: 1fr;
  /* grid-template-rows: auto auto 1fr 1fr 1fr; */
  margin: auto 5px;
  font-size: 13px;
}

/* .box 的一级子 div 元素 */
.bookTable .bt-center .box>div {
  margin-bottom: 5px;
}

.bookTable .bt-center .price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bookTable .bt-center .current-price {
  font-size: 18px;
  color: #e60000;
}


.bookTable .bt-center .discount {
  font-size: 12px;
  color: #666;
}


.bookTable .bt-center .original-price {
  font-size: 12px;
  color: #666;
  text-decoration: line-through;
}


.bookTable .bt-center .bk-info {
  color: #666;
  white-space: nowrap;
  overflow: hidden;
}

.bookTable .bt-center .bk-btn {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.bookTable .bt-center .btn {
  display: inline-block;
  padding: 3px;
  color: #e60000;
  border: 1px solid #e60000;
  border-radius: 3px;
  cursor: pointer;
}

.bookTable .bt-center .btn:hover {
  background-color: #ffe5e5;
}

.bookTable .bt-center .btn-add {
  margin-right: 20px;
}
